package com.indusfo.spc.service.impl;

import com.indusfo.spc.mapper.RoleStationMapper;
import com.indusfo.spc.pojo.RoleStation;
import com.indusfo.spc.service.RoleStationService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author chenm
 * @create 2019-11-22 15:45
 */
@Service
public class RoleStationServiceImpl implements RoleStationService {
  @Resource
  private RoleStationMapper roleStationMapper;
  @Override
  public List<RoleStation> selectByRoleId(Integer roleId) {
    return roleStationMapper.selectByRoleId(roleId);
  }

  @Override
  public List<Integer> selectStationIdByUserId(Integer userId) {
    return roleStationMapper.selectStationIdByUserId(userId);
  }
}
